package com.xnyzc.lhy.finance.mapper.invoice;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnyzc.lhy.finance.entity.invoice.OaSysInvoiceOrder;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author haoyfa
 * @since 2019-10-31
 */
public interface OaSysInvoiceOrderMapper extends BaseMapper<OaSysInvoiceOrder> {
    /**
     * 计算订单的开票金额
     * @param orderIdsStr
     * @return
     */
    BigDecimal amountOrder(@Param("orderIdsStr") String[] orderIdsStr);

    void insertInvoiceOrder(@Param("invoiceOrderList") List<OaSysInvoiceOrder> invoiceOrderList);
}
